package hr.fer.zemris.ShopFloor;

import java.util.Random;

public class Job {
	private Double p; 	// procesing time
	private Double r; 	// realise date
	private Double d; 	// due date
	private Double sl; 	// positive slack
	private Double st; 	// stay time
	private Double wt; 	// wait time
	
	public Job()
	{
		Random rand = new Random();
		
		this.p = rand.nextDouble();
		this.r = rand.nextDouble();
		this.d = rand.nextDouble();
		this.sl = rand.nextDouble();
		this.st = rand.nextDouble();
		this.wt = rand.nextDouble();
	}

	public Double getP() {
		return p;
	}
	
	public Double getR() {
		return r;
	}
	
	public Double getD() {
		return d;
	}
	
	public Double getSl() {
		return sl;
	}
	
	public Double getSt() {
		return st;
	}
	
	public Double getWt() {
		return wt;
	}
	
	public String printJob() {
		return new String("p  -> " + p + "\nr  -> " + r + "\nd  -> " + d + "\nsl -> " + sl + "\nst -> " + st + "\nwt -> " + wt);
	}
}

